package com.eve.eplus.common.http;

import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;


/**
 * http工具类
 * @author norsie
 * @create 12-12-17
 */
public class HttpUtils {

    public static InputStream getStreamFromURL(String imageURL) {
        InputStream in=null;
        try {
            URL url=new URL(imageURL);
            HttpURLConnection connection=(HttpURLConnection) url.openConnection();
            in=connection.getInputStream();
            
        } catch (Exception e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        return in;
        
    }
}
